package com.kadron.enumeration;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.seam.core.Interpolator;

import com.kadron.common.KConst;

public enum PropertyType {

	NONE,COLOR,SIZE;
	
	private static final Log log = LogFactory.getLog(PropertyType.class);
	
	public String getPrint() {
		String label = "";
		try {
			label = Interpolator.instance().interpolate("#{messages['"+name()+"']}", new Object());
		} catch (Exception e) {
			log.error("Error interpolating name="+name());
			label = KConst.ERROR_LABEL;
		}
		return label;
	}
	
}
